import request from "../../request";
export default {
  pageList(data) {
    //获取菜单列表
    return request({
      url: "TsysMenu/page",
      method: "post",
      data
    });
  },
  addMenu(data) {
    //新增菜单
    return request({
      url: "TsysMenu/save",
      method: "post",
      data
    });
  },
  updateMenu(data) {
    //修改菜单
    return request({
      url: "TsysMenu/update",
      method: "post",
      data
    });
  },
  updateState(data) {
    //修改菜单状态
    return request({
      url: "TsysMenu/updateState",
      method: "post",
      data
    });
  },
  removeMenu(data) {
    //删除菜单
    return request({
      url: "TsysMenu/remove",
      method: "post",
      data
    });
  }
};
